from rest_framework.viewsets import ModelViewSet
from apps.courses.models import Course
from apps.courses.serializers import CourseModelSerializer
from apps.users.authentication import CustomAuthentication
from apps.users.permissions import CustomIsStaff


# Create your views here.
class CourseViewSet(ModelViewSet):
    authentication_classes = [CustomAuthentication]
    permission_classes = [CustomIsStaff]
    queryset = Course.objects.all()
    serializer_class = CourseModelSerializer
